﻿namespace Jage.GameEditor.Controls.Resources
{
    public class ResourceTypeFactory
    {

        static public ResourceType Get(string file)
        {
            file = file.ToLower();
            if (file.EndsWith(".png")) return ResourceType.Sprite;
            if (file.EndsWith(".wav")) return ResourceType.Sound;
            if (file.EndsWith(".mp3")) return ResourceType.Music;
            return ResourceType.Unsupported;
        }

    }
}
